!function(){
    /*s1部分*/
    const bigwrap=$(".listimg");
    const li=$(".listimg>li");
    const scrdad=$(".bottom");
    const scr=$(".scr");
    function scrchange1(){
        scr.css({"height":"7px","top":"-2px"});
    }
    function scrchange2(){
        scr.css({"height":"3px","top":"0px"});
        scr.siblings().css({"height":"3px","top":"0px"});
    }
    function scrchange3(){
        scr.css({"height":"5px","top":"-1px"});
        scr.siblings().css({"height":"5px","top":"-1px"});
    }
    anyscroll(bigwrap,li,scrdad,scr,scrchange1,scrchange2,scrchange3);//列表框元素，列表项目元素，滚动条框元素，滚动条元素

}();

!function(){
    /*s3部分*/
    const bigwrap=$(".s3imgs");
    const li=$(".s3li");
    const scrdad=$(".s3bottom");
    const scr=$(".s3scr");
    function scrchange1(){
        scr.css({"height":"7px","top":"-2px"});
    }
    function scrchange2(){
        scr.css({"height":"3px","top":"0px"});
        scr.siblings().css({"height":"3px","top":"0px"});
    }
    function scrchange3(){
        scr.css({"height":"5px","top":"-1px"});
        scr.siblings().css({"height":"5px","top":"-1px"});
    }
    anyscroll(bigwrap,li,scrdad,scr,scrchange1,scrchange2,scrchange3);//列表框元素，列表项目元素，滚动条框元素，滚动条元素

}();